package com.alison.importbeanregistercondition;


import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import org.springframework.context.annotation.Import;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Import({ImportBeanRegistrarConditionImpl.class})
public @interface EnableImportBeanRegisterCondition {

    SourceType sourceType() default SourceType.NON;

    @Getter
    @NoArgsConstructor
    public static enum SourceType {
        CSV, JDBC, NON;
    }
}
